<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>儿童数学闯关游戏</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <h1>儿童数学闯关游戏</h1>
        <div class="avatar-section">
            <label for="avatar-upload">上传你的头像：</label>
            <input type="file" id="avatar-upload" accept="image/*">
            <img id="avatar-preview" src="default-avatar.png" alt="头像">
        </div>
        <p>当前关卡：<span id="current-level">1</span></p>
        <button id="start-game">开始游戏</button>
    </div>

    <!-- 弹窗 -->
    <div id="game-modal" class="modal">
        <div class="modal-content">
            <span id="question"></span>
            <input type="number" id="answer-input" placeholder="输入答案">
            <button id="submit-answer">提交</button>
            <p id="result-message"></p>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>